import { createRouter, createWebHistory } from 'vue-router'
import indexpre from "../view/index.vue";
 
const routerHistory = createWebHistory()
const router = createRouter({
    history: routerHistory,
    routes: [
        // {
        //     path: '/',
        //     name:'indexpre',
        //     component: () => import('../views/login.vue')
        // },
        {
            path: '/',
            component: indexpre,
            name:"indexpre"
        },
        {
            path: '/chatpage',
            component: () => import('../view/chatpage.vue'),
            name:"chatpage"
        },
    ]
})
export default router